<root xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
    <xi:include href="rds.html" />

<report>
    <?python
        topic = model.Topic.get(int(topic_id))
        teachers = [model.Teacher.get(int(x)) for x in ids]
    ?>

    <pages>

        <page py:for="teacher in teachers"
            py:attrs="{'title': teacher.title}">

            ${XML(generate_excel_commands(teacher, topic))}
        </page>

    </pages>
</report>

</root>
